#ifndef PUSHCASEWIDGET_H
#define PUSHCASEWIDGET_H


#define MAP_ROW 7 //地图行数
#define MAP_COL 7 //地图列数
#define ROW_HEIGTH 50 //行高
#define COL_WIDTH 50  //列宽

#include <QWidget>
#include <QLabel>
#include <QPushButton>
#include <QMessageBox>
class PushCaseWidget : public QWidget
{
    Q_OBJECT

public:
    PushCaseWidget(QWidget *parent = 0);
    ~PushCaseWidget();
private slots:
    bool DarwMap(int map[MAP_ROW][MAP_COL]);
    void BtnUpClicked();
    void BtnDownClicked();
    void BtnLeftClicked();
    void BtnRightClicked();
    void BtnResetClicked();
    void GetPeopleIndex(int map[MAP_ROW][MAP_COL],int &row,int &col);
private:
    QLabel *m_labMap[MAP_ROW][MAP_COL];
    QPushButton *m_btnUp;
    QPushButton *m_btnDown;
    QPushButton *m_btnLeft;
    QPushButton *m_btnRight;
    QPushButton *m_btnReset;
    int m_map[MAP_ROW][MAP_COL];
};

#endif // PUSHCASEWIDGET_H
